<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'regist.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	 <script type='text/javascript' src='/ShoesShop/dwr/interface/Service.js'></script>
  <script type='text/javascript' src='/ShoesShop/dwr/engine.js'></script>
	 <script type='text/javascript' src='/ShoesShop/dwr/util.js'></script>
	<script type="text/javascript">
function pp() {
	var pp = dwr.util.getValue("users.username");
	Service.checkRegisterName(pp, callBack);
}
 function callBack(data) {
	dwr.util.setValue("ll", data);
}
/*function pl() {
	var pp = dwr.util.getValue("users.name");
	Service.psw(pp, callBa);
}
function callBa(data) {
	dwr.util.setValue("pl", data);
}*/
/*function pm() {
	var pp = dwr.util.getValue("user");
	var pq = dwr.util.getValue("psw");
	Service.pp(pp, pq, call);
}
function call(data) {//data接收方法的返回值
	var pb = document.getElementById("pb");
	var pn = document.getElementById("pn");
	pn.style.display = "block";
	pb.style.display = "none";
	dwr.util.setValue("pn", data);
}*/
</script>

  </head>
  
  <body>
<div style="width:700px; padding-left:500px ">
<form action="registAction.action"  method="post"　>
 用户:
    <input  name="users.username" id="users.username" type="text" onchange=" pp()"/>
    <span id="ll"></span>
    <br />
      <br />
 姓名:
  <input  name="users.name" id="users.name" type="text" />
  <span id="pl"></span>
  
  <br />
  <br />
 密码:
  <input  name="users.password"  type="text"/>
  
  <br />
  <br />
昵称:
  <input  name="users.nic" type="text"/>
  <br />
  <br />
 性别:
  <input  name="users.sex" type="text"/>
  <br />
  <br />
年龄:
  <input  name="users.age" type="text"/>
  <br />
  <br />
邮箱:
  <input  name="users.email" type="text"/>
  <br />
  <br />
电话:
  <input  name="users.phone" type="text"/>
  <br />
   <br /> 
  　　<input type="submit" value="注册" />　<input type="reset" value="重置" />
  
 </form>


</div>  

  
  </body>
</html>
